<!-- start module contents -->
<table cellspacing="0" width="100%">
  <tr>
    <td colspan="2"><b><{$lang_welcomemsg}></b><br /><small><{$lang_tostart}></small><hr /></td>
  </tr>
  <tr valign="bottom">
    <td><small><{$lang_totaltopics}><b><{$total_topics}></b> | <{$lang_totalposts}><b><{$total_posts}></b></small><br /><br /><a href="javascript:<{ajax_update update_id='content' url='actions/index_action.php' method='get'  params=''}>"><{$forum_index_title}></a></td>
    <td align="right"><small><{$lang_currenttime}><br /><{$lang_lastvisit}></small></td>
  </tr>
</table>
<br />

<!-- start forum categories -->
<{section name=category loop=$categories}>
<table cellspacing="1" class="outer">
	<{assign var="categorycatid" value=$categories[category].cat_id}>
  <tr align="left" valign="top"><th colspan="5"><a href="javascript:<{ajax_update update_id='content' url='actions/index_action.php' method='get'  params="cat=$categorycatid"}>"><{$categories[category].cat_title}></a></th></tr>
  <tr class="head" align="center">
    <td>&nbsp;</td>
	<td nowrap="nowrap" align="left"><{$lang_forum}></td>
	<td nowrap="nowrap"><{$lang_topics}></td>
	<td nowrap="nowrap"><{$lang_posts}></td>
	<td nowrap="nowrap"><{$lang_lastpost}></td>
  </tr>
  <!-- start forums -->
  <{section name=forum loop=$categories[category].forums.forum_id}>
  <tr>
	<{assign var="categoryforumsforumid" value=$categories[category].forums.forum_id[forum]}>
    <td class="even" align="center" valign="middle" width="5%"><img src="<{$categories[category].forums.forum_folder[forum]}>" alt="" /></td>
    <td class="odd"><a href="javascript:<{ajax_update update_id='content' url='actions/viewforum_action.php' method='get'  params="forum=$categoryforumsforumid"}>"><b><{$categories[category].forums.forum_name[forum]}></b></a><br /><{$categories[category].forums.forum_desc[forum]}><br /><span style="font-size:smaller;"><b><{$lang_moderators}></b> <{$categories[category].forums.forum_moderators[forum]}></span></td>
    <td class="even" width="5%" align="center" valign="middle"><{$categories[category].forums.forum_topics[forum]}></td>
    <td class="odd" width="5%" align="center" valign="middle"><{$categories[category].forums.forum_posts[forum]}></td>
    <td class="even" width="20%" align="center" valign="middle"><{$categories[category].forums.forum_lastpost_time[forum]}><br /><{$categories[category].forums.forum_lastpost_user[forum]}> <{$categories[category].forums.forum_lastpost_icon[forum]}></td>
  </tr>
  <{/section}>
  <!-- end forums -->
</table>
<img src="images/pixel.gif" height="5" alt="" /><br />
<{/section}>
<!-- end forum categories -->

<{ajax_formupdate url="actions/search_action.php" method="post"  update_id="content"  id="newbbsearchform" }>
  <table width="100%">
    <tr>
      <td valign="middle"><img src="<{$img_hotfolder}>" alt="" /> = <{$lang_newposts}><br /><img src="<{$img_folder}>" alt="" /> = <{$lang_nonewposts}><br />  <img src="<{$img_locked}>" alt="" /> = <{$lang_private}></td>
      <td align="right" valign="bottom"><b><{$lang_search}></b>&nbsp;<input name="term" type="text" size="20" /><input type="hidden" name="forum" value="all" /><input type="hidden" name="sortby" value="p.post_time desc" /><input type="hidden" name="searchboth" value="both" /><input type="hidden" name="submit" value="<{$lang_search}>" /><br />[ <a href="javascript:<{ajax_update update_id='content' url='actions/search_action.php' method='get'  params=''}>"><{$lang_advsearch}></a> ]</td>
    </tr>
  </table>
<{/ajax_formupdate}>
<{include file='db:system_notification_select.html'}>
<!-- end module contents -->